//==========================================================================
// Copyright (c) 2000-2008,  Elastos, Inc.  All Rights Reserved.
//==========================================================================


#include <asm.h>

.global C_SYMBOL(SWPADD)

C_SYMBOL(SWPADD):
    stmdb	sp!, {r4, r5, lr}
    ldr	r3, [r0]
    mov	r5, #1
    swi	0x00000000
    ldmia	sp!, {r4, r5, pc}


.global C_SYMBOL(CMPSWP)

C_SYMBOL(CMPSWP):
    stmdb	sp!, {r4, r5, lr}
    ldr	r3, [r0]
    mov	r5, #2
    swi	0x00000000
    ldmia	sp!, {r4, r5, pc}
